import unittest

from UnitTest.demo01.tools import add_num


class TestAdd(unittest.TestCase):
    def test_add_num_1(self):
        """输入1和2，预期3 """
        self.assertEqual(3, add_num(1, 2))

    def test_add_num_2(self):
        """输入10和20，预期30 """
        self.assertEqual(30, add_num(10, 20))

    def test_add_num_3(self):
        """输入2和3，预期5 """
        self.assertEqual(5, add_num(2, 3))
